/* 都有的已引用文档统筹 */

/* 设置一整屏页面 */
html,
body {
  height: 100%;
  width: 100%;
}

/* 重置body大小 纵向布局*/
body {
  font-size: 0.24rem;

}

#app {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* overflow-x: hidden;
  overflow-y: hidden; */
}

/* -----------------------#header -------------------------*/
#header {
  height: 0.96rem;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-bottom: 0.06rem;
}

#header input {
  padding-left: 0.7rem;
  box-sizing: border-box;
  height: 0.68rem;
  background: #eeeeee url(../images/首页-01-搜索图标.png) no-repeat 3% 50%;
  border-radius: 0.68rem;
  width: 5rem;
}

#header .iconfont {
  font-size: 0.64rem;
}

/* -----------------------#nav -------------------------*/
#nav {
  height: 4rem;
  width: 100%;
  margin-bottom: 0.4rem;
}

#nav .banner {
  width: 100%;
  height: 2rem;
  background: yellow;
  margin-bottom: 0.1rem;
}

#nav .banner img {
  width: 100%;
  height: 100%;
}

#nav .tip1 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 0.1rem;
}

#nav .tip1 div {
  display: flex;
  width: 25%;
  align-items: center;
  height: 0.4rem;
  /* background: yellow; */
  /* border: 1px solid #000; */
}

#nav .tip1 div img {
  width: 0.44rem;
  height: 0.44rem;
}

/*---------jingangqu金刚区-------- */
.jingangqu {
  height: 1.34rem;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
}

.jingangqu section {
  height: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #444444;
  font-size: 0.22rem;
}

.jingangqu section img {
  height: 0.51rem;
}

/* -----------------------#main -------------------------*/
#main {
  width: 100%;
  flex: 1;
  height: auto;
  overflow: auto;
}

#main .every {
  height: 5rem;
  width: 100%;
  /* background: red; */
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#main .every .every_pre {
  width: 50%;
  height: 50%;
  border: 1px solid #ebebeb;
  border-left: 0;
  box-sizing: border-box;
  display: flex;
}

#main .every .every_pre:nth-of-type(2n) {
  border-right: 0;
}

#main .every .content {
  width: 50%;
  height: 100%;
}


#main .every .imgContainer {
  width: 50%;
  height: 100%;
}

#main .every .every_pre button {
  background: #fff;
  text-align: center;
  width: 1.6rem;
  height: 0.4rem;
  line-height: 0.4rem;
  font-size: 0.12rem;
  border-radius: 0.4rem;
  color: #cb91aa;
  border: 0.01rem solid #cb91aa;
  margin-top: 20%;
}

#main .every .every_pre p {
  margin: 10% 5% 10% 5%;
}

#main .every .every_pre p:first-of-type {

  font-weight: bolder;
  font-size: 0.28rem;
}

#main .every .every_pre img {
  width: 100%;
  height: 100%;
}

/* 早报 */
#main .zaobao {
  box-sizing: border-box;
  padding-left: 0.1rem;
  width: 100%;
  height: 0.44rem;
  /* background: red; */
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}

#main .zaobao button {
  width: 1rem;
  height: 0.42rem;
  background: #ffecf2;
  color: #c57495;
  border-radius: 0.1rem;
  margin: 0 0.2rem 0 0.2rem;
  border: transparent;
}

#main .new_dalibao {
  margin-top: 0.2rem;
  text-align: center;
}

#main .new_dalibao img {
  width: 100%;
  height: 100%;
}

/* 会员特惠 */
#main .huiyuan {
  height: 2.6rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
}

#main .huiyuan>div {
  width: 20%;
  height: 100%;
  color: #787878;
  font-size: 0.12rem;
}

#main .huiyuan>div>div {
  width: 100%;
  height: 50%;
  background: #eeeeee;
  border-radius: 0.1rem;
  overflow: hidden;
}

#main .huiyuan img {
  width: 100%;
  height: 100%;
}

#main .huiyuan .title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

#main .huiyuan .current_price {
  color: #ceafbe;
  width: 100%;
  line-height: 1;
  margin-top: 0.2rem;
}

#main .huiyuan .price {
  text-decoration: line-through;
  color: #afabac;
  width: 100%;
  line-height: 1;
}

/* 主体商品分类部分 */
.main_main {
  height: 100rem;
}

.main_main .main_nav {
  height: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main_main .main_nav li {
  height: 65%;
  width: 24%;
  text-align: center;
  border-right: 0.01rem solid #000;
}

.main_main .main_nav li:last-of-type {
  border-right: 0;
}

.main_main .main_nav li button {
  margin-top: 0.01rem;
  background: transparent;
  border-radius: 0.3rem;
  height: 0.3rem;
  width: 60%;
  font-size: 0.1rem;
  line-height: 0.3rem;
  text-align: center;
}

#main .main_main .main_nav li button.on {
  background: #de5b91;
  color: #fff;
}

#main .main_main .main_nav li.on {
  color: #e56b9c;
}

.main_main .content {
  height: auto;
  width: 100%;
  /* background: yellow; */
}

.main_main .content>div {
  display: none;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #fafafa;
}

#main .main_main .content>div.on {
  display: flex;
}

.main_main .content section {
  height: 4rem;
  width: 47%;
  margin-bottom: 0.1rem;
  background: #fff;
}
.main_main .content section  div{
  width: 100%;
  height: 70%;
}
.main_main .content section  img{
  width: 100%;
  height: 100%;
}



/* ----------------------------footer---------------------- */
footer {
  width: 100%;
  height: 0.96rem;
  border-top: 0.01rem solid #d3d3d3;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 0.2rem;
  color: #a1a1a1;
}

footer section {
  height: 0.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

footer section.on {
  color: #0084ff;
}

footer .iconfont {
  font-size: 0.4rem;
}

footer .icon-me {
  position: relative;
}

footer .icon-me::after {
  content: "";
  display: block;
  width: 0.12rem;
  height: 0.12rem;
  background: #f1403c;
  border-radius: 0.12rem;
  position: absolute;
  right: -0.04rem;
  top: -0.02rem;
}